package com.kfm;

import com.kfm.autoconfig.anno.EnableUserConfig;
import com.kfm.autoconfig.bean.TestBean;
import com.kfm.autoconfig.config.UserConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;
import redis.clients.jedis.Jedis;

@SpringBootApplication
//@ComponentScan("com.kfm.autoconfig.config")
//@Import(UserConfig.class)
@EnableUserConfig
public class MyApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(MyApplication.class, args);
//        TestBean bean = applicationContext.getBean(TestBean.class);
//        System.out.println(bean);

//        Jedis bean = applicationContext.getBean(Jedis.class);
//
//        System.out.println(bean);
    }
}
